package com.shopping.dao;

import com.shopping.pojo.Orders;
import com.shopping.pojo.User;
import com.shopping.pojo.vo.OrdersInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrdersDao {
    // 获取订单列表
    public List<OrdersInfo> selectOrdersByQuery(@Param("orderId") String orderId, @Param("userName") String userName, @Param("start") int start, @Param("limit") int limit);
    // 获取订单列表数量
    public int getOrdersNum(@Param("orderId") String orderId, @Param("userName") String userName);
    // 获取商家订单列表
    public List<OrdersInfo> selectOrdersInfoByBusinessId(@Param("businessId") String businessId,@Param("orderId") String orderId);
    // 获取用户订单列表
    public List<OrdersInfo> selectOrdersByUserId(Integer userId);
    // 新增订单
    public int insertOrder(Orders orders);
    // 根据订单id获取id
    public int selectIdByOrderId(String orderId);
    // 获取用户订单详情
    public OrdersInfo selectOrdersByOrderId(Integer id);
}
